home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / DCLAP 6d / dclap6d / corelib / ncbilcl.ult < prev    next >
Text File  |  1996-07-05  |  5KB  |  140 lines

  1. /*   ncbilcl.h
  2. * ===========================================================================
  3. *
  4. *                            PUBLIC DOMAIN NOTICE
  5. *               National Center for Biotechnology Information
  6. *
  7. *  This software/database is a "United States Government Work" under the
  8. *  terms of the United States Copyright Act.  It was written as part of
  9. *  the author's official duties as a United States Government employee and
  10. *  thus cannot be copyrighted.  This software/database is freely available
  11. *  to the public for use. The National Library of Medicine and the U.S.
  12. *  Government have not placed any restriction on its use or reproduction.
  13. *
  14. *  Although all reasonable efforts have been taken to ensure the accuracy
  15. *  and reliability of the software and data, the NLM and the U.S.
  16. *  Government do not and cannot warrant the performance or results that
  17. *  may be obtained by using this software or data. The NLM and the U.S.
  18. *  Government disclaim all warranties, express or implied, including
  19. *  warranties of performance, merchantability or fitness for any particular
  20. *  purpose.
  21. *
  22. *  Please cite the author in any work or product based on this material.
  23. *
  24. * ===========================================================================
  25. *
  26. * File Name:  ncbilcl.h
  27. *
  28. * Author:  Gish, Kans, Ostell, Schuler
  29. *
  30. * Version Creation Date:   1/1/91
  31. *
  32. * $Revision: 2.5 $
  33. *
  34. * File Description:
  35. *        system dependent header
  36. *        DEC/ULTRIX 4.0 version
  37. *
  38. * Modifications:
  39. * --------------------------------------------------------------------------
  40. * Date     Name        Description of modification
  41. * -------  ----------  -----------------------------------------------------
  42. * 22FEB91  Foxwell     Header for DEC/UNIX (ULTRIX 4.0)
  43. *                        DEC/MIPS and VAX are Little-endian.
  44. *                        ULTRIX is BSD UNIX.  No other dependencies.
  45. *                        foxwell@decuac.dec.com
  46. * ==========================================================================
  47. */
  48. #ifndef _NCBILCL_
  49. #define _NCBILCL_
  50.  
  51. /* PLATFORM DEFINITION FOR DEC/UNIX (ULTRIX 4.0) on RISC and VAX */
  52.  
  53. #define COMP_SYSV
  54. #define OS_UNIX
  55. #define OS_UNIX_SYSV
  56. #define OS_UNIX_ULTRIX
  57. #define PROC_MIPS
  58. #define WIN_DUMB
  59.  
  60. /*----------------------------------------------------------------------*/
  61. /*      Desired or available feature list                               */
  62. /*----------------------------------------------------------------------*/
  63. #define SYSV_IPC_AVAIL /* System V Interprocess Communication available */
  64.  
  65. /*----------------------------------------------------------------------*/
  66. /*      #includes                                                       */
  67. /*----------------------------------------------------------------------*/
  68. #include <sys/types.h>
  69. #include <limits.h>
  70. #include <sys/stat.h>
  71. #include <stddef.h>
  72. #include <stdio.h>
  73. #include <ctype.h>
  74. #include <string.h>
  75. #include <malloc.h>
  76. #include <memory.h>
  77. #include <stdlib.h>
  78. #include <math.h>
  79. #include <errno.h>
  80. #include <float.h>
  81.  
  82. /*----------------------------------------------------------------------*/
  83. /*      Missing ANSI-isms                                               */
  84. /*----------------------------------------------------------------------*/
  85. #define const    /* "const" keyword not accepted */
  86. #define noalias    /* "noalias" keyword not accepted */
  87. #define volatile    /* "volatile" keyword not accepted */
  88.  
  89. #ifndef CLK_TCK
  90. #define CLK_TCK 60
  91. #endif
  92.  
  93. /*----------------------------------------------------------------------*/
  94. /*      Aliased Logicals, Datatypes                                     */
  95. /*----------------------------------------------------------------------*/
  96.  
  97. /*----------------------------------------------------------------------*/
  98. /*      Misc Macros                                                     */
  99. /*----------------------------------------------------------------------*/
  100. #define PROTO(x)    x    /* Function prototypes faked in */
  101. #define VPROTO(x)    x    /* Prototype for variable argument list */
  102. #define DIRDELIMCHR    '/'
  103. #define DIRDELIMSTR    "/"
  104. #define CWDSTR    "."
  105.  
  106. #define KBYTE    (1024)
  107. #define MBYTE    (1048576)
  108.  
  109. #define IS_LITTLE_ENDIAN
  110. #define TEMPNAM_AVAIL
  111.  
  112. /*----------------------------------------------------------------------*/
  113. /*      For importing MS_DOS code                                       */
  114. /*----------------------------------------------------------------------*/
  115. #define near
  116. #define far
  117. #define huge
  118. #define cdecl
  119. #define pascal
  120. #define _pascal
  121. #define _near
  122. #define _far
  123. #define _huge
  124. #define _cdecl
  125.  
  126. /*----------------------------------------------------------------------*/
  127. /*      Macros for Floating Point                                       */
  128. /*----------------------------------------------------------------------*/
  129. #define EXP2(x) exp((x)*LN2)
  130. #define LOG2(x) (log(x)*(1./LN2))
  131. #define EXP10(x) exp((x)*LN10)
  132. #define LOG10(x) (log(x)*(1./LN10))
  133.  
  134. /*----------------------------------------------------------------------*/
  135. /*      Macros Defining Limits                                          */
  136. /*----------------------------------------------------------------------*/
  137. #define MAXALLOC    0x40000000 /* Largest permissible memory request */
  138.  
  139. #endif
  140.